import request from '@/utils/request'

// 查询调课管理列表
export function listEduExchange(query) {
  return request({
    url: '/education/eduExchange/list',
    method: 'get',
    params: query
  })
}

// 查询自己的调课管理列表
export function myEduExchange(query) {
  return request({
    url: '/education/eduExchange/my',
    method: 'get',
    params: query
  })
}


// 查询调课管理详细
export function getEduExchange(id) {
  return request({
    url: '/education/eduExchange/' + id,
    method: 'get'
  })
}

// 新增调课管理
export function addEduExchange(data) {
  return request({
    url: '/education/eduExchange',
    method: 'post',
    data: data
  })
}

// 修改调课管理
export function updateEduExchange(data) {
  return request({
    url: '/education/eduExchange',
    method: 'put',
    data: data
  })
}

// 删除调课管理
export function delEduExchange(id) {
  return request({
    url: '/education/eduExchange/' + id,
    method: 'delete'
  })
}

// 导出调课管理
export function exportEduExchange(query) {
  return request({
    url: '/education/eduExchange/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/education/eduExchange/importTemplate',
    method: 'get'
  })
}

// 审核申请
export function checkExchange(data) {
  return request({
    url: '/education/eduExchange/check',
    method: 'post',
    data: data
  })
}
